package vista;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

public class Aplicacion extends SingleFrameApplication {
	private VentanaPrincipal ventanaPrincipal;
	
    @Override 
    protected void startup() {
    	ventanaPrincipal = new VentanaPrincipal();
        show(ventanaPrincipal);
    }

    public static Aplicacion getApplication() {
        return Application.getInstance(Aplicacion.class);
    }

    public static void main(String[] args) {
        launch(Aplicacion.class, args);
    }
    
    public void reiniciar(){
		ventanaPrincipal.reiniciar();
    }
}
